package com.example.demo.common;

/**
 * Created with IntelliJ IEDA.
 * Description:
 * User:86186
 * Date:2023-08-29
 * Time:14:45
 */

/**
 * 全局变量
 */
public class AppVariable {
    /**
     * 用户的 session key
     */
    public static final String USER_SESSION_KEY = "USER_SESSION_KEY";

    /**
     *  定时发布限制未来的时间: 10 天
     */
    public static final long REGULAR_TIME = 10 * 24 * 60 * 60 * 1000;

    /**
     * 用户多次登录失败冻结时间
     */
    public static final Integer FREEZE_TIME = 10;

    /**
     *  登录验证码的 key
     */
    public static final String LOGIN_CHECK_CODE = "LOGIN_CHECK_CODE";


    /**
     *  文件保存路径
     */
    // 本地
//    public static final String UPLOADS_PATH = "D:/image/";
//    public static final String UPLOADS_PATH = "C:\\javacode\\java\\mycnblog-ssm\\src\\main\\resources\\static\\img\\photo\\";
//    public static final String UPLOADS_PATH = "/java_gobang/image/";

    // 服务器
    public static final String UPLOADS_PATH = "/blog_system_li/image/";
}
